//
//  SignInViewController.m
//  Jyxt
//
//  Created by 刘日 on 17/5/27.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "SignInViewController.h"
#import "UserCenterViewModel.h"
#import <LemonBubble.h>

@interface SignInViewController ()

@end

@implementation SignInViewController

- (void)initView{
    self.lkNavigationBar.hidden = YES;
    [UserCenterViewModel bindSignInCheckWithNumberField: self.numberField passwordField: self.passwordField signInButton: self.signInButton];
}

- (void)firstViewDidAppear:(BOOL)animated{
    if ([UserCenterViewModel isHaveSignIn]){
        [UserCenterViewModel gotoMain];
        [[LKFreeCtrl getTopViewController] showRightWithTitle: @"自动登录成功" autoCloseTime: 2];
    }
}

@end
